$scoreboard players set @s Power $(value)

scoreboard players set @s[scores={Power=..-1}] Power 0
execute if function vs:system/game_ctrol/guard_tower/power/if/is_max_power run function vs:system/game_ctrol/guard_tower/power/value/constraint_to_max

function vs:system/game_ctrol/guard_tower/power/update_power_display